import request from '@/utils/request'

// 查询实验训练记录列表
export function listTraining(query) {
  return request({
    url: '/aiexperiments/training/list',
    method: 'get',
    params: query
  })
}

// 查询实验训练记录详细
export function getTraining(trainingId) {
  return request({
    url: '/aiexperiments/training/' + trainingId,
    method: 'get'
  })
}

// 新增实验训练记录
export function addTraining(data) {
  return request({
    url: '/aiexperiments/training',
    method: 'post',
    data: data
  })
}

// 修改实验训练记录
export function updateTraining(data) {
  return request({
    url: '/aiexperiments/training',
    method: 'put',
    data: data
  })
}

// 删除实验训练记录
export function delTraining(trainingId) {
  return request({
    url: '/aiexperiments/training/' + trainingId,
    method: 'delete'
  })
}
